package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.AttendPunchDeptExample.E_ATTEND_PLAN_ID;
import static org.jsola.hr.example.AttendPunchDeptExample.E_COMPANY_ID;
import static org.jsola.hr.example.AttendPunchDeptExample.E_COMPANY_NAME;
import static org.jsola.hr.example.AttendPunchDeptExample.E_DEPT_ID;
import static org.jsola.hr.example.AttendPunchDeptExample.E_DEPT_NAME;
import static org.jsola.hr.example.AttendPunchDeptExample.M_ATTEND_PLAN_ID_MAX;
import static org.jsola.hr.example.AttendPunchDeptExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.AttendPunchDeptExample.M_COMPANY_NAME_MAX;
import static org.jsola.hr.example.AttendPunchDeptExample.M_DEPT_ID_MAX;
import static org.jsola.hr.example.AttendPunchDeptExample.M_DEPT_NAME_MAX;
import static org.jsola.hr.example.AttendPunchDeptExample.N_ATTEND_PLAN_ID;
import static org.jsola.hr.example.AttendPunchDeptExample.N_COMPANY_ID;
import static org.jsola.hr.example.AttendPunchDeptExample.N_COMPANY_NAME;
import static org.jsola.hr.example.AttendPunchDeptExample.N_DEPT_ID;
import static org.jsola.hr.example.AttendPunchDeptExample.N_DEPT_NAME;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【考勤打卡参与部门】的参数")
@Data
public class AttendPunchDeptUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_COMPANY_NAME, example = E_COMPANY_NAME)
    @Length(max = 100, message = M_COMPANY_NAME_MAX)
    private String companyName;

    @ApiModelProperty(notes = N_DEPT_ID, example = E_DEPT_ID)
    @Length(max = 32, message = M_DEPT_ID_MAX)
    private String deptId;

    @ApiModelProperty(notes = N_DEPT_NAME, example = E_DEPT_NAME)
    @Length(max = 100, message = M_DEPT_NAME_MAX)
    private String deptName;

    @ApiModelProperty(notes = N_ATTEND_PLAN_ID, example = E_ATTEND_PLAN_ID)
    @Length(max = 32, message = M_ATTEND_PLAN_ID_MAX)
    private String attendPlanId;


}

